﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:EnergyGeneratorSimVisualizer="clr-namespace:EnergyGeneratorSimVisualizer.Views"
             x:Class="EnergyGeneratorSimVisualizer.Views.SimulationParametersView"
             mc:Ignorable="d"
             d:DesignHeight="500"
             d:DesignWidth="1000">
    <UserControl.Resources>
    </UserControl.Resources>
    
    <WrapPanel>
        <GroupBox Header="SimulationsParameter">
        	<EnergyGeneratorSimVisualizer:SimulationParameterView />
        </GroupBox>
        <GroupBox Header="Spulenparameter">
            <EnergyGeneratorSimVisualizer:CoilParameterView DataContext="{Binding Inductor}" />
        </GroupBox>
        <GroupBox Header="Permanentmagnet-Simulation">
            <EnergyGeneratorSimVisualizer:PermanentMagnetView DataContext="{Binding PermanentMagnet}" />
        </GroupBox>
        <GroupBox Header="Allgemein">
            <EnergyGeneratorSimVisualizer:GeneralParameterView DataContext="{Binding General}" />
        </GroupBox>

        <GroupBox Header="Spulendarstellung">
            <StackPanel>
                <Slider  Value="1000"
                         Maximum="10000"
                         Minimum="1"
                         Interval="100"
                         IsMoveToPointEnabled="True"
                         IsSelectionRangeEnabled="False"
                         LargeChange="1000"
                         TickFrequency="1000"
                         SmallChange="10"
                         IsSnapToTickEnabled="True"
                         TickPlacement="BottomRight"
                         x:Name="coilZoomSlider" />
                <EnergyGeneratorSimVisualizer:CoilView  WireDiameter="{Binding Inductor.DD}"
                              CoilWindingAcross="{Binding Inductor.Ueberturbo}"
                              CoilWindingLateral="{Binding Inductor.Nebenturbo}"
                              ZoomFactor="{Binding Value, ElementName=coilZoomSlider}" />
            </StackPanel>
        </GroupBox>

    </WrapPanel>
</UserControl>
